package com.lcm.weam.dao.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lcm.weam.entity.sys.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    //无条件分页查询User列表
    IPage<User> selectAll(Page<?> page);

    List<User> selectAll();

    User selectById(String uid);

    User selectByMobile(String mobile);

    void updateUser(User user);

    void changePassword(String newPassword, String uid);

    void updateUserPhoto(String userPhoto, String uid);

    void register(User user);

    void auth(String uid);
}
